#include <iostream>
#include <unistd.h>
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include "SelectServer.hpp"
#include "PollServer.hpp"
#include "EpollServer.hpp"
using namespace std;
int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        std::cout << "Usage :\n";
        std::cout << argv[0] << " port\n";
        return 0;
    }
    uint16_t port = std::stoi(argv[1]);
    // SelectTcpServer svr(port);
    // PollTcpServer svr(port);
    TcpServer svr; svr.Init(port, 10);
    svr.Loop();
    return 0;
}